/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package desu.nya.DAO;

import desu.nya.Cover;
import java.sql.SQLException;
import java.util.List;
import org.primefaces.model.StreamedContent;

/**
 *
 * @author Fess
 */
public interface CoverDAO {
    public void addCover(Cover cover) throws SQLException;
    public Cover getCoverByID(Long id) throws SQLException;
    public void updateCover(Long cover_id,Cover cover) throws SQLException;
    public List<Cover> getAllCover() throws SQLException;
    public void deleteCover(Cover cover) throws SQLException;
    public StreamedContent getCoverImage(Long id,int imageType) throws SQLException;
}
